/**
 * English Language Pack
 * xxpay Management Platform
 */
window.I18N_MESSAGES_ENUS = {
    // System Name
    'system.name': 'Management Platform',
    'system.title': 'xxpay Payment Management Platform',
    'system.welcome': 'Welcome to Management Platform',
    'system.copyright': '© 2024 xxpay Payment Platform',

    // Navigation Menu
    'menu.dashboard': 'Dashboard',
    'menu.merchant': 'Merchant Management',
    'menu.agent': 'Agent Management',
    'menu.order': 'Order Management',
    'menu.channel': 'Channel Management',
    'menu.finance': 'Finance Management',
    'menu.system': 'System Management',
    'menu.report': 'Reports',
    'menu.setting': 'System Settings',

    // Merchant Management
    'merchant.list': 'Merchant List',
    'merchant.add': 'Add Merchant',
    'merchant.edit': 'Edit Merchant',
    'merchant.detail': 'Merchant Details',
    'merchant.status': 'Merchant Status',
    'merchant.balance': 'Merchant Balance',
    'merchant.info': 'Merchant Information',
    'merchant.config': 'Merchant Configuration',

    // Agent Management
    'agent.list': 'Agent List',
    'agent.add': 'Add Agent',
    'agent.edit': 'Edit Agent',
    'agent.detail': 'Agent Details',
    'agent.status': 'Agent Status',

    // Order Management
    'order.list': 'Order List',
    'order.detail': 'Order Details',
    'order.status': 'Order Status',
    'order.amount': 'Order Amount',
    'order.time': 'Order Time',
    'order.search': 'Order Search',

    // Channel Management
    'channel.list': 'Channel List',
    'channel.add': 'Add Channel',
    'channel.edit': 'Edit Channel',
    'channel.config': 'Channel Configuration',
    'channel.status': 'Channel Status',

    // Finance Management
    'finance.settlement': 'Settlement Management',
    'finance.withdraw': 'Withdrawal Management',
    'finance.account': 'Account Management',
    'finance.bill': 'Bill Management',

    // Reports
    'report.overview': 'Data Overview',
    'report.merchant': 'Merchant Reports',
    'report.channel': 'Channel Reports',
    'report.finance': 'Finance Reports',

    // System Management
    'system.user': 'User Management',
    'system.role': 'Role Management',
    'system.permission': 'Permission Management',
    'system.log': 'Log Management',
    'system.config': 'System Configuration',

    // Form Fields
    'field.id': 'ID',
    'field.name': 'Name',
    'field.code': 'Code',
    'field.type': 'Type',
    'field.status': 'Status',
    'field.remark': 'Remark',
    'field.createTime': 'Create Time',
    'field.updateTime': 'Update Time',
    'field.operator': 'Operator',

    // Merchant Fields
    'field.mchId': 'Merchant ID',
    'field.mchName': 'Merchant Name',
    'field.mchType': 'Merchant Type',
    'field.contactName': 'Contact Name',
    'field.contactPhone': 'Contact Phone',
    'field.contactEmail': 'Contact Email',
    'field.address': 'Address',
    'field.balance': 'Balance',
    'field.freezeBalance': 'Frozen Balance',

    // Order Fields
    'field.orderId': 'Order ID',
    'field.mchOrderNo': 'Merchant Order No',
    'field.amount': 'Amount',
    'field.currency': 'Currency',
    'field.subject': 'Subject',
    'field.body': 'Description',
    'field.channelId': 'Channel ID',
    'field.channelName': 'Channel Name',
    'field.payTime': 'Pay Time',
    'field.notifyUrl': 'Notify URL',
    'field.returnUrl': 'Return URL',

    // Status Values
    'status.enabled': 'Enabled',
    'status.disabled': 'Disabled',
    'status.pending': 'Pending',
    'status.processing': 'Processing',
    'status.success': 'Success',
    'status.failed': 'Failed',
    'status.cancelled': 'Cancelled',

    // Order Status
    'order.status.init': 'Initialized',
    'order.status.paying': 'Paying',
    'order.status.success': 'Payment Success',
    'order.status.failed': 'Payment Failed',
    'order.status.closed': 'Closed',
    'order.status.refund': 'Refunded',

    // Buttons
    'btn.add': 'Add',
    'btn.edit': 'Edit',
    'btn.delete': 'Delete',
    'btn.save': 'Save',
    'btn.cancel': 'Cancel',
    'btn.confirm': 'Confirm',
    'btn.submit': 'Submit',
    'btn.reset': 'Reset',
    'btn.search': 'Search',
    'btn.export': 'Export',
    'btn.import': 'Import',
    'btn.refresh': 'Refresh',
    'btn.back': 'Back',
    'btn.detail': 'Details',
    'btn.config': 'Config',
    'btn.enable': 'Enable',
    'btn.disable': 'Disable',

    // Operation Tips
    'tip.select': 'Please select data to operate',
    'tip.confirm.delete': 'Are you sure to delete selected data?',
    'tip.confirm.enable': 'Are you sure to enable selected data?',
    'tip.confirm.disable': 'Are you sure to disable selected data?',
    'tip.no.data': 'No Data Available',
    'tip.loading': 'Loading...',
    'tip.save.success': 'Save Successfully',
    'tip.save.failed': 'Save Failed',
    'tip.delete.success': 'Delete Successfully',
    'tip.delete.failed': 'Delete Failed',

    // Form Validation
    'validate.required': 'This field is required',
    'validate.email': 'Please enter a valid email address',
    'validate.phone': 'Please enter a valid phone number',
    'validate.number': 'Please enter a number',
    'validate.positive': 'Please enter a positive number',
    'validate.length.min': 'Length cannot be less than {min} characters',
    'validate.length.max': 'Length cannot exceed {max} characters',
    'validate.length.range': 'Length should be between {min}-{max} characters',

    // Pagination
    'page.total': 'Total {total} records',
    'page.current': 'Page {current}',
    'page.size': '{size} per page',
    'page.goto': 'Go to',
    'page.prev': 'Previous',
    'page.next': 'Next',
    'page.first': 'First',
    'page.last': 'Last',

    // Time
    'time.today': 'Today',
    'time.yesterday': 'Yesterday',
    'time.week': 'This Week',
    'time.month': 'This Month',
    'time.year': 'This Year',
    'time.custom': 'Custom',
    'time.start': 'Start Time',
    'time.end': 'End Time',

    // User Related
    'user.login': 'Login',
    'user.logout': 'Logout',
    'user.profile': 'Profile',
    'user.password': 'Change Password',
    'user.username': 'Username',
    'user.password.old': 'Old Password',
    'user.password.new': 'New Password',
    'user.password.confirm': 'Confirm Password',

    // Language Switch
    'lang.chinese': '中文',
    'lang.english': 'English',
    'lang.switch': 'Switch Language',
    'lang.switch.success': 'Language switched successfully',
    'lang.switch.failed': 'Language switch failed',

    // Error Messages
    'error.network': 'Network connection failed',
    'error.timeout': 'Request timeout',
    'error.server': 'Server error',
    'error.permission': 'Permission denied',
    'error.not.found': 'Page not found',
    'error.unknown': 'Unknown error',

    // Success Messages
    'success.operation': 'Operation successful',
    'success.save': 'Save successful',
    'success.delete': 'Delete successful',
    'success.update': 'Update successful',
    'success.create': 'Create successful'
};

// Set messages to I18n
if (window.I18n) {
    if (window.I18n.getLocale() === 'en_US') {
        window.I18n.messages = window.I18N_MESSAGES_ENUS;
    }
}
